﻿@TC07
Feature: TC07 - Determinant of a Matrix
	In order to perform matrix calculations
	As a subscriber to the Matrix math library
	I want to calculate the determinant of a Matrix object

#TC07
Background:
	Given that 'm2x2_0' equals Matrix:
		"""
		0 0
		0 0
		"""
	And that 'm2x2_1' equals Matrix:
		"""
		1 1
		1 1
		"""
	And that 'm1' equals Matrix:
		"""
		0 0
		0 1
		"""
	And that 'm2' equals Matrix:
		"""
		1 2
		3 4
		"""
	And that 'm3' equals Matrix:
		"""
		.1 .2
		.3 .4
		"""
	And that 'm4' equals Matrix:
		"""
		1 0
		1 0
		"""

Scenario Outline: Calculate the determinant of a Matrix object
	When I calculate the determinant of Matrix '<matrix>'
	Then the result should be <determinant>

	Examples:
	| matrix | determinant |
	| m2x2_0 | 0           |
	| m2x2_1 | 0           |
	| m1     | 0           |
	| m2     | -2          |
	| m3     | -0.020      |
	| m4     | 0           |
